<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>input 事件</title>
</head>
<body>
<div id="app">
    <!--在输入框内容发生改变的时候进行触发-->
    <!--输入、delete、backspace、黏贴、剪切-->
    <form action="">
        <label for="content">
            请输入内容</label>
        <input type="text" name="conent" id="content" @input="contentChanged">
    </form>
</div>

<script type="module">
    import {createApp} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup() {
                function contentChanged(event) {
                    console.log(event);
                }
                return {
                    contentChanged,
                }
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>